<template>
  <div class="rainfall">
    <TitleColumn name="未来24小时降雨" />
    <div class="content">
      <ul class="rainfallWrapper">
        <li class="hour1">
          <p>1小时</p>
          <h3>1.3<span>mm</span></h3>
        </li>
        <li class="hour3">
          <p>3小时</p>
          <h3>6.56<span>mm</span></h3>
        </li>
        <li class="hour24">
          <p>24小时</p>
          <h3>8.6<span>mm</span></h3>
        </li>
        <li class="hour6">
          <p>6小时</p>
          <h3>7.6<span>mm</span></h3>
        </li>
      </ul>
    </div>
  </div>
</template>

<script lang="ts" setup>
  import { reactive } from 'vue';
  import TitleColumn from '@/components/TitleColumn';

  defineOptions({ name: 'Rainfall' });

  const state = reactive({
    name: 'vue3',
  });
</script>

<style lang="less" rel="stylesheet/less" scoped>
  .rainfall {
    width: 100%;
    height: 100%;
    .content {
      width: 100%;
      height: calc(100% - 24px);
      background: #02123433;
      backdrop-filter: blur(10px);
      .rainfallWrapper {
        width: 100%;
        height: 100%;
        background: url(./bg.png) no-repeat;
        background-size: contain;
        position: relative;
        li {
          width: 70px;
          height: 90px;
          display: flex;
          flex-direction: column;
          align-items: center;
          justify-content: center;
          position: absolute;
          p {
            color: #B4DFFF;
          }
          h3 {
            font-size: 16px;
            color: #fff;
            span {
              color: #B4DFFF;
              font-size: 12px;
            }
          }
        }
        .hour1 {
          top: 30px;
          left: 58px;
        }
        .hour3 {
          top: 24px;
          right: 100px;
        }
        .hour24 {
          top: 150px;
          left: 60px;
        }
        .hour6 {
          top: 146px;
          right: 100px;
        }
      }
    }
  }
</style>
